<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>

</head>
<body>
<form class="form-horizontal" role="form" id="form">

    <div class="form-group">
        <label for="birthDay" class="col-sm-2 control-label">备注</label>
        <div class="col-sm-10">
             <div id="birthDay" class="cc-DateTimePicker" control-option="xxxx" view="2"  required="true"  style="width:250px;height:30px;"   remark="生日的日期" ></div>

        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <input type="button" value="getAddData" onclick="getAddData()">
            <input type="button" value="getEditData" onclick="getEditData()">
        </div>
    </div>
</form>


<!--#include file="common.shtml"-->



<link href="/lib/datepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="/lib/datepicker/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="/lib/datepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>


<script type="text/javascript">

    _$.parser.onComplete = function(){
        logger("---------------")
    };



    $(function(){
       _$.parser.parse()
    });
    function getAddData(){

        var form = new _$.Form("#form");
        var values = form.getAddData();
        alert(JSON.stringify(values))
    }
    function getEditData(){

        var form = new _$.Form("#form");
        var values = form.getEditData();
        alert(JSON.stringify(values))
    }
</script>
</body>
</html>
